﻿//************************************************************************************************
// Copyright © 2014 Steven M. Cohn. All Rights Reserved.
// 
//************************************************************************************************

namespace River.Folderize
{
	using System;
	using System.Windows;


	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application
	{

		/// <summary>
		/// Constructor.  Basic checks.
		/// </summary>

		public App () : base()
		{
			if ((Environment.OSVersion.Version.Minor < 2) ||
				!Environment.Is64BitOperatingSystem)
			{
				MessageBox.Show("Folderize is designed for 64-bit Windows v8.1 and higher");
				Application.Current.Shutdown();
			}

			// ensure we have an elevated execution level
			new System.Security.Permissions.RegistryPermission(
				System.Security.Permissions.PermissionState.Unrestricted).Assert();
		}
	}
}
